package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.pojo.Reward;

@Mapper
@Repository
public interface RewardDao {
	public List<Reward> getAll();

	public int delReward(int id);

	public int addReward(Reward reward);

	public Reward selectByPrimary(int id);

	public int updateReward(Reward reward);

	public List<Reward> selectAllByNickname(String nickname);

	 Double increaseSalary(int u_id);

	 Double reduceSalary(int u_id);
}
